//package com.gome.gop.filter;
//
//
//import javax.servlet.Filter;
//import javax.servlet.FilterChain;
//import javax.servlet.FilterConfig;
//import javax.servlet.ServletException;
//import javax.servlet.ServletRequest;
//import javax.servlet.ServletResponse;
//import javax.servlet.annotation.WebFilter;
//import javax.servlet.http.HttpServletRequest;
//import java.io.IOException;
//
///**
// * @author lyt
// * @des xxs过滤器
// */
//@WebFilter(filterName = "xssFilter", urlPatterns = "/*")
//public class XssFilter implements Filter {
//
//    FilterConfig filterConfig = null;
//
//    @Override
//    public void init(FilterConfig filterConfig) {
//        System.out.println("过滤器初始化");
//        this.filterConfig = filterConfig;
//    }
//
//    @Override
//    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
//        filterChain.doFilter(new XssHttpServletRequestWrapper((HttpServletRequest) servletRequest), servletResponse);
//    }
//
//    @Override
//    public void destroy() {
//        this.filterConfig = null;
//    }
//
//}
